/**
 * 
 */
package javas.system;

/**
 * TestRuntime.java. 2011-11-14下午3:35:06 @author LionBule.
 */
public class TestRuntime {

    /**
     * @param args
     */
    public static void main(String[] args) {
        long free = Runtime.getRuntime().freeMemory()/(1024*1024);
        long total = Runtime.getRuntime().totalMemory()/(1024*1024);
        long max = Runtime.getRuntime().maxMemory()/(1024*1024);
        System.out.println(free);
        System.out.println(total);
        System.out.println(max);
    }

}
